ADD_DEFINITIONS( -DOPENIG_SDK )
SET( APP_NAME openig-client-tqserver )

SET( TARGET_SRC_FILES main.cpp )

ADD_EXECUTABLE( ${APP_NAME} ${TARGET_SRC_FILES} )

INCLUDE_DIRECTORIES(
	${Boost_INCLUDE_DIRS}	
	${OPENIG_INCLUDE_DIR}	
	${OSG_INCLUDE_DIRS}	
)

TARGET_LINK_LIBRARIES( ${APP_NAME}
    ${OSG_LIBRARIES}
	${OPENIG_LIBRARIES}
    ${Boost_LIBRARIES}
	${OPENGL_LIBRARY}
)

INSTALL(
    TARGETS ${APP_NAME}
    RUNTIME DESTINATION bin/openig-client COMPONENT openig-client
)

SET_TARGET_PROPERTIES( ${APP_NAME} PROPERTIES PROJECT_LABEL "Application OpenIG-TerrainQueryServer" )

SET(INSTALL_INCDIR include)
SET(INSTALL_BINDIR bin/openig-client)
IF(WIN32)
    SET(INSTALL_LIBDIR bin)
    SET(INSTALL_ARCHIVEDIR lib)
ELSE()
    SET(INSTALL_LIBDIR ${CMAKE_INSTALL_LIBDIR})
    SET(INSTALL_ARCHIVEDIR ${CMAKE_INSTALL_LIBDIR})
ENDIF()

